import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseMarQuee/ace_marquee.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';


class YBMapMiShuAnimationTextPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
       height: 40,
       child: Stack(
         children: [
           Container(
             child: Padding(
               padding: EdgeInsets.only(top: 3),
               child: Container(
                 alignment: Alignment.center,
                 height: 35,
                 decoration: BoxDecoration(
                   color: YBColor.colorD6EEFF,
                   borderRadius: BorderRadius.all(Radius.circular(5.0)),
                 ),
                 child: Padding(
                   padding: EdgeInsets.only(left: 30,),
                   child: ACEMarquee(
                     children:[
                       Container(
                         child:Padding(
                           padding: EdgeInsets.only(left: 10,right: 10),
                           child: Text("无时无刻，满足需求；一键呼叫，快速响应",maxLines: 1,style: YBTextStyle.TextStyle18181814Medium,),
                         ),
                       ),
                       Container(
                         child:Padding(
                           padding: EdgeInsets.only(left: 10,right: 10),
                           child: Text("商家靠谱，办事省心；交易追踪，办买省钱",maxLines: 1,style: YBTextStyle.TextStyle18181814Medium,),
                         ),
                       ),
                     ],
                     direction: AxisDirection.up,
                     duration: Duration(milliseconds: 2000),
                   ),
                 ),
               ),
             ),
           ),
           Container(
             child: Image.asset(YBImageStyle.getImagePath('quanjutubiao')),
           ),
         ],
       ),
    );
  }
}
